package com.caishi.lkx.order.config;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component("alipayConfig")
@ConditionalOnProperty("alipay.info.app-id")
@ConfigurationProperties(prefix = "alipay.info",ignoreInvalidFields = true)
@Data
public class AlipayConfig {

    private String gateway;
    private String appId;
    private String appPrivateKey;
    private String alipayPublicKey;
    private String appPublicKey;
    private String notifyUrl;
    private String returnUrl;
    private String charset = "UTF-8";

}
